/* --- SEARCH BAR WRAPPER --- */
.search-section-wrapper {
    display: flex;
    justify-content: center;
    /* margin: 5px 0px; */
    padding: 5px;
    background: #2d3436;
    box-shadow: #000000;
}

.main-search-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    width: 100%;
    max-width: 600px;
    padding: 4px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* MENU TRIGGER BUTTON */
.menu-open-btn {
    background: #0984e3;
    border: none;
    padding: 8px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    cursor: pointer;
    color: #2d3436;
    font-size: 0.8rem;
    transition: 0.2s;
}

.menu-open-btn:hover { background: #dfe6e9; }

/* SEARCH INPUT AREA */
.search-input-group {
    display: flex;
    flex-grow: 1;
    align-items: center;
}

.search-input-group input {
    width: 100%;
    border: none;
    outline: none;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.search-input-group button {
    background: #0984e3;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- SIDE NAV PANEL --- */
.side-nav-panel {
    position: fixed;
    top: 0;
    left: -280px; /* Slimmer width */
    width: 280px;
    height: 100%;
    background: #ffffff;
    z-index: 3000;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.side-nav-panel.active { left: 0; }

/* HEADER SYNCED WITH MAIN HEADER */
.side-nav-header {
    background: #2d3436;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-logo-wrap .logo {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem; /* Smaller logo text */
}

.side-logo-wrap .logo span { color: #0984e3; }

/* MODERN CLOSE BUTTON */
.menu-close-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: 0.2s;
}

.menu-close-btn:hover {
    background: #d63031;
    transform: rotate(90deg);
}

/* COMPACT CONTENT AREA */
.side-nav-content {
    padding: 10px 15px; /* Reduced extra space */
    flex-grow: 1;
    overflow-y: auto;
}

.nav-label {
    font-size: 0.65rem; /* Smaller letter size */
    font-weight: 700;
    text-transform: uppercase;
    color: #b2bec3;
    margin-bottom: 8px; /* Tight spacing */
    letter-spacing: 0.5px;
}

/* SYNCED LINKS (Injected via JS) */
#side-panel-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px; /* Compact row height */
    text-decoration: none;
    color: #2d3436;
    font-weight: 500;
    font-size: 0.85rem; /* Smaller text */
    border-bottom: 1px solid #f9f9f9;
    transition: 0.2s;
}

#side-panel-links a:hover {
    background: #f1f2f6;
    color: #0984e3;
    padding-left: 12px;
}

#side-panel-links a i {
    width: 18px;
    font-size: 0.9rem;
    color: #0984e3;
    text-align: center;
}

/* OVERLAY */
.menu-dark-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 2500;
}

.menu-dark-overlay.active { display: block; }

/* MOBILE TWEAKS */
@media (max-width: 480px) {
    .menu-open-btn span { display: none; }
    .side-nav-panel { width: 260px; }
}